home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-18 | 8.9 KB | 274 lines | [TEXT/ttxt] |
- module: dylan-user
- rcs-header: $Header: exports.dylan,v 1.40 94/08/18 18:41:23 wlott Exp $
-
- //======================================================================
- //
- // Copyright (c) 1994 Carnegie Mellon University
- // All rights reserved.
- //
- // Use and copying of this software and preparation of derivative
- // works based on this software are permitted, including commercial
- // use, provided that the following conditions are observed:
- //
- // 1. This copyright notice must be retained in full on any copies
- // and on appropriate parts of any derivative works.
- // 2. Documentation (paper or online) accompanying any system that
- // incorporates this software, or any part of it, must acknowledge
- // the contribution of the Gwydion Project at Carnegie Mellon
- // University.
- //
- // This software is made available "as is". Neither the authors nor
- // Carnegie Mellon University make any warranty about the software,
- // its performance, or its conformity to any specification.
- //
- // Bug reports, questions, comments, and suggestions should be sent by
- // E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
- //
- //======================================================================
- //
- // This file contains the library and module definitions for the
- // Dylan library.
- //
-
- define library Dylan
- export Dylan, Extensions, System, File-Descriptors, Threads;
- end Dylan;
-
- define module Builtin-Stuff
- export
- \*, \+, \-, \/, \<, \<=, \=, \==, \~=,
- <array>,
- <boolean>, <buffer>, <byte-string>, <byte-vector>,
- <character>, <class>, <collection>, <complex>,
- <double-float>,
- <empty-list>, <event>, <explicit-key-collection>, <extended-float>,
- <false>, <float>, <function>,
- <generic-function>,
- <integer>,
- <list>, <lock>,
- <method>, <mutable-collection>, <mutable-explicit-key-collection>,
- <mutable-sequence>,
- <number>,
- <object>,
- <pair>,
- <ratio>, <rational>, <real>,
- <sequence>, <simple-object-vector>, <single-float>, <singleton>,
- <spinlock>, <string>, <symbol>,
- <thread>, <true>, <type>,
- <unicode-string>,
- <vector>,
- <weak-pointer>,
- $permanent-hash-state,
- add-method, all-superclasses, applicable-method?, apply,
- apply-curry, as, ash,
- broadcast-event,
- direct-subclasses, direct-superclasses,
- ceiling, ceiling/, copy-bytes, current-handler, current-thread,
- do-next-method,
- element, element-setter, enable-error-system,
- find-method, float-hash, floor, floor/, format, function-arguments,
- generic-function-mandatory-keywords, generic-function-methods,
- getc, grab-lock,
- handler-function, handler-init-args, handler-next, handler-test,
- handler-type, head, head-setter,
- initialize, instance?, invoke-debugger,
- kill-thread,
- limited, list, locked?, logand, logbit?, logior, lognot, logxor,
- main, make, make-generic-function, merge-hash-codes, method-specializers,
- negative,
- object-class, object-hash,
- pair, prin1, print, putc, puts,
- raw-exit, release-lock, remove-method, round, round/,
- signal-event, singleton, size, slot-initialized?, spawn-thread,
- sorted-applicable-methods, state-valid?, subtype?,
- tail, tail-setter, truncate, truncate/,
- union,
- values, vector,
- wait-for-event, weak-pointer-object,
- fd-close, fd-error-string, fd-input-available?, fd-open,
- fd-read, fd-seek, fd-sync-output, fd-write, fd-exec,
- L_SET, L_INCR, L_XTND, FNDELAY, FAPPEND, FCREAT, FTRUNC, FEXCL, O_RDONLY,
- O_WRONLY, O_RDWR, O_NDELAY, O_APPEND, O_CREAT, O_TRUNC, O_EXCL,
- ENOENT, EIO, ENXIO, EACCES, EFAULT, EEXIST, ENOTDIR, EISDIR,
- EINVAL, ENFILE, EMFILE, ETXTBSY, ENOSPC, EROFS, EOPNOTSUPP, ELOOP,
- ENAMETOOLONG, EDQUOT, EBADF, EINTR, EWOULDBLOCK, EPIPE, EFBIG;
- create
- aref, aref-setter, do, error, type-error,
- make-next-method-function, generic-apply,
- forward-iteration-protocol, backward-iteration-protocol,
- table-protocol, negative?,
- debugger-flush, debugger-call, debugger-print, debugger-report-condition,
- debugger-abort, debugger-describe-restarts, debugger-restart,
- debugger-return, debugger-eval,
- on-exit, exit;
- end Builtin-Stuff;
-
- define module Dylan
- use Builtin-Stuff,
- import: all,
- export: {\*, \+, \-, \/, \<, \<=, \=, \==, \~=,
- <array>,
- <byte-string>,
- <character>, <class>, <collection>, <complex>,
- <double-float>,
- <empty-list>, <explicit-key-collection>, <extended-float>,
- <float>, <function>,
- <generic-function>,
- <integer>,
- <list>,
- <method>, <mutable-collection>, <mutable-explicit-key-collection>,
- <mutable-sequence>,
- <number>,
- <object>,
- <pair>,
- <ratio>, <rational>, <real>,
- <sequence>, <simple-object-vector>, <single-float>, <singleton>,
- <string>, <symbol>,
- <type>,
- <unicode-string>,
- <vector>,
- $permanent-hash-state,
- add-method, all-superclasses, applicable-method?, apply,
- aref, aref-setter, as, ash,
- backward-iteration-protocol,
- direct-subclasses, direct-superclasses,
- ceiling, ceiling/,
- do,
- element, element-setter, error,
- find-method, floor, floor/, forward-iteration-protocol,
- function-arguments,
- generic-function-mandatory-keywords, generic-function-methods,
- head, head-setter,
- initialize, instance?,
- limited, list, logand, logbit?, logior, lognot, logxor,
- make, merge-hash-codes, method-specializers,
- negative, negative?,
- object-class, object-hash,
- pair,
- remove-method, round, round/,
- singleton, size, slot-initialized?, sorted-applicable-methods,
- subtype?,
- table-protocol, tail, tail-setter, truncate, truncate/,
- union,
- values, vector};
- export
- \>=, \>, \:=, \|, \&,
- <abort>,
- <condition>,
- <deque>,
- <error>,
- <object-table>,
- <range>, <restart>,
- <serious-condition>, <simple-error>, <simple-restart>,
- <simple-warning>, <stretchy-collection>, <stretchy-vector>,
- <table>, <type-error>,
- <warning>,
- abort, abs, add, add!, add-new, add-new!, always, any?, as-lowercase,
- as-lowercase!, as-uppercase, as-uppercase!,
- break,
- cerror, check-type, choose, choose-by,
- class-for-copy, complement, compose, concatenate, concatenate-as,
- condition-format-string, condition-format-arguments, conjoin,
- copy-sequence, curry,
- default-handler, denominator, dimension, dimensions, disjoin, do-handlers,
- empty?, even?, every?, expt,
- fill!, find-key, first, first-setter,
- gcd,
- identity, integral?, intersection,
- key-sequence, key-test,
- last, last-setter, lcm,
- map, map-as, map-into, max, member?, min, modulo,
- numerator,
- odd?,
- pop, pop-last, positive?, push, push-last,
- range, rank, rationalize, rcurry, reduce, reduce1, remainder, remove,
- remove!, remove-duplicates, remove-duplicates!, remove-key!,
- replace-elements!, replace-subsequence!, restart-query,
- return-allowed?, return-description, return-query, reverse, reverse!,
- row-major-index,
- second, second-setter, shallow-copy, signal, size-setter, sort, sort!,
- subsequence-position,
- third, third-setter, type-error-value,
- type-error-expected-type,
- zero?;
- end Dylan;
-
- define module Extensions
- use Dylan;
- use Builtin-Stuff,
- import: {main, exit, on-exit,
- format, prin1, print, putc, puts, getc, <byte-vector>,
- <boolean>, <true>, <false>,
- <weak-pointer>, weak-pointer-object},
- export: all;
- export
- one-of, type-or, ignore,
- <equal-table>, equal-hash, collection-hash,
- <value-table>, value-hash, sequence-hash, string-hash;
- end Extensions;
-
- define module System
- use Dylan;
- use Builtin-Stuff,
- import: {<buffer>, copy-bytes},
- export: all;
- end System;
-
- define module File-Descriptors
- use Dylan;
- use Builtin-Stuff,
- import: {fd-close, fd-error-string, fd-input-available?,
- fd-open, fd-read, fd-seek, fd-sync-output, fd-write, fd-exec,
-
- // Lseek call.
- //
- L_SET, L_INCR, L_XTND,
-
- // Flags also for fcntl call.
- //
- FNDELAY, FAPPEND,
-
- // Open only modes.
- //
- FCREAT, FTRUNC, FEXCL,
-
- // Open call.
- //
- O_RDONLY, O_WRONLY, O_RDWR, O_NDELAY, O_APPEND, O_CREAT, O_TRUNC,
- O_EXCL,
-
- // Open errors.
- //
- ENOENT, EIO, ENXIO, EACCES, EFAULT, EEXIST, ENOTDIR, EISDIR,
- EINVAL, ENFILE, EMFILE, ETXTBSY, ENOSPC, EROFS, EOPNOTSUPP, ELOOP,
- ENAMETOOLONG, EDQUOT,
-
- // Close errors.
- //
- EBADF,
-
- // Read errors (that are also not Open or Close errors).
- //
- EINTR,
- EWOULDBLOCK,
-
- // Write errors (that are not also open, close, or read errors).
- //
- EPIPE,
- EFBIG},
- export: all;
- end File-Descriptors;
-
- define module Threads
- use Dylan;
- use Extensions;
- use Builtin-Stuff,
- import: {<thread>, spawn-thread, current-thread, kill-thread,
- <lock>, <spinlock>,
- locked?, grab-lock, release-lock,
- <event>, wait-for-event, signal-event, broadcast-event},
- export: all;
- export
- <multilock>, <semaphore>;
- end;
-